import { loader } from './helper';
import type { MultiToolConfig } from './MultiTool/types';

export const toolConfigs: MultiToolConfig[] = [
  {
    id: 'select',
    title: '选择工具',
    icon: 'Select'
  },
  {
    id: 'rect',
    title: '矩形工具',
    icon: 'Rect',
  },
  {
    id: 'circle',
    title: '圆形工具',
    icon: 'Circle',
  },
  {
    id: 'path',
    title: '钢笔工具',
    icon: 'Path',
  },
  {
    id: 'line',
    title: '直线工具',
    icon: 'Line',
  },
  {
    id: 'text',
    title: '文本工具',
    icon: 'Text',
  },
  {
    id: 'shapelib',
    icon: 'Shape',
    title: '图形工具',
    path: 'm1,116.58409l113.82668,0l35.17332,-108.13487l35.17334,108.13487l113.82666,0l-92.08755,66.83026l35.17514,108.13487l-92.08759,-66.83208l-92.08757,66.83208l35.17515,-108.13487l-92.08758,-66.83026z',
    tabs: [
      {
        tab: 'objects',
        label: '对象',
        tools: loader(() => import('./json/object.json'))
      },
      {
        tab: 'symbols',
        label: '符号',
        tools: loader(() => import('./json/symbol.json'))
      },
      {
        tab: 'arrows',
        label: '箭头',
        tools: loader(() => import('./json/arrow.json'))
      },
      {
        tab: 'flowchart',
        label: '流程图',
        tools: loader(() => import('./json/flowchart.json'))
      },
      {
        tab: 'nature',
        label: '自然',
        tools: loader(() => import('./json/nature.json'))
      }
    ]
  }
];
